﻿using System;

namespace DCode.EmailValidator.Test
{
    internal class Program
    {
        private static void Main(string[] args)
        {
            if (args == null) throw new ArgumentNullException("args");

            try
            {
                const string mail = "rthrhth@yahoo.com";

                using (var validator = new Core.Validator())
                {
                    //var response = validator.ValidateMail(mail);
                    var response = validator.ValidateMail(mail);

                    Console.WriteLine("Email result: " + response.IsValid.ToString());
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }
        }
    }
}
